package com.uplooking.pojo;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

public class NewsVOExample {
	protected String orderByClause;

	protected boolean distinct;

	protected Integer start;

	protected Integer limit;

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	protected List<Criteria> oredCriteria;

	public NewsVOExample() {
		oredCriteria = new ArrayList<Criteria>();
	}

	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	public String getOrderByClause() {
		return orderByClause;
	}

	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	public boolean isDistinct() {
		return distinct;
	}

	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}

	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;

		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}

		public boolean isValid() {
			return criteria.size() > 0;
		}

		public List<Criterion> getAllCriteria() {
			return criteria;
		}

		public List<Criterion> getCriteria() {
			return criteria;
		}

		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}

		protected void addCriterion(String condition, Object value, String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}

		protected void addCriterion(String condition, Object value1, Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}

		public Criteria andNsidIsNull() {
			addCriterion("nsid is null");
			return (Criteria) this;
		}

		public Criteria andNsidIsNotNull() {
			addCriterion("nsid is not null");
			return (Criteria) this;
		}

		public Criteria andNsidEqualTo(Integer value) {
			addCriterion("nsid =", value, "nsid");
			return (Criteria) this;
		}

		public Criteria andNsidNotEqualTo(Integer value) {
			addCriterion("nsid <>", value, "nsid");
			return (Criteria) this;
		}

		public Criteria andNsidGreaterThan(Integer value) {
			addCriterion("nsid >", value, "nsid");
			return (Criteria) this;
		}

		public Criteria andNsidGreaterThanOrEqualTo(Integer value) {
			addCriterion("nsid >=", value, "nsid");
			return (Criteria) this;
		}

		public Criteria andNsidLessThan(Integer value) {
			addCriterion("nsid <", value, "nsid");
			return (Criteria) this;
		}

		public Criteria andNsidLessThanOrEqualTo(Integer value) {
			addCriterion("nsid <=", value, "nsid");
			return (Criteria) this;
		}

		public Criteria andNsidIn(List<Integer> values) {
			addCriterion("nsid in", values, "nsid");
			return (Criteria) this;
		}

		public Criteria andNsidNotIn(List<Integer> values) {
			addCriterion("nsid not in", values, "nsid");
			return (Criteria) this;
		}

		public Criteria andNsidBetween(Integer value1, Integer value2) {
			addCriterion("nsid between", value1, value2, "nsid");
			return (Criteria) this;
		}

		public Criteria andNsidNotBetween(Integer value1, Integer value2) {
			addCriterion("nsid not between", value1, value2, "nsid");
			return (Criteria) this;
		}

		public Criteria andNsinfoIsNull() {
			addCriterion("nsinfo is null");
			return (Criteria) this;
		}

		public Criteria andNsinfoIsNotNull() {
			addCriterion("nsinfo is not null");
			return (Criteria) this;
		}

		public Criteria andNsinfoEqualTo(String value) {
			addCriterion("nsinfo =", value, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNsinfoNotEqualTo(String value) {
			addCriterion("nsinfo <>", value, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNsinfoGreaterThan(String value) {
			addCriterion("nsinfo >", value, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNsinfoGreaterThanOrEqualTo(String value) {
			addCriterion("nsinfo >=", value, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNsinfoLessThan(String value) {
			addCriterion("nsinfo <", value, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNsinfoLessThanOrEqualTo(String value) {
			addCriterion("nsinfo <=", value, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNsinfoLike(String value) {
			addCriterion("nsinfo like", value, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNsinfoNotLike(String value) {
			addCriterion("nsinfo not like", value, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNsinfoIn(List<String> values) {
			addCriterion("nsinfo in", values, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNsinfoNotIn(List<String> values) {
			addCriterion("nsinfo not in", values, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNsinfoBetween(String value1, String value2) {
			addCriterion("nsinfo between", value1, value2, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNsinfoNotBetween(String value1, String value2) {
			addCriterion("nsinfo not between", value1, value2, "nsinfo");
			return (Criteria) this;
		}

		public Criteria andNstimeIsNull() {
			addCriterion("nstime is null");
			return (Criteria) this;
		}

		public Criteria andNstimeIsNotNull() {
			addCriterion("nstime is not null");
			return (Criteria) this;
		}

		public Criteria andNstimeEqualTo(Timestamp value) {
			addCriterion("nstime =", value, "nstime");
			return (Criteria) this;
		}

		public Criteria andNstimeNotEqualTo(Timestamp value) {
			addCriterion("nstime <>", value, "nstime");
			return (Criteria) this;
		}

		public Criteria andNstimeGreaterThan(Timestamp value) {
			addCriterion("nstime >", value, "nstime");
			return (Criteria) this;
		}

		public Criteria andNstimeGreaterThanOrEqualTo(Timestamp value) {
			addCriterion("nstime >=", value, "nstime");
			return (Criteria) this;
		}

		public Criteria andNstimeLessThan(Timestamp value) {
			addCriterion("nstime <", value, "nstime");
			return (Criteria) this;
		}

		public Criteria andNstimeLessThanOrEqualTo(Timestamp value) {
			addCriterion("nstime <=", value, "nstime");
			return (Criteria) this;
		}

		public Criteria andNstimeIn(List<Timestamp> values) {
			addCriterion("nstime in", values, "nstime");
			return (Criteria) this;
		}

		public Criteria andNstimeNotIn(List<Timestamp> values) {
			addCriterion("nstime not in", values, "nstime");
			return (Criteria) this;
		}

		public Criteria andNstimeBetween(Timestamp value1, Timestamp value2) {
			addCriterion("nstime between", value1, value2, "nstime");
			return (Criteria) this;
		}

		public Criteria andNstimeNotBetween(Timestamp value1, Timestamp value2) {
			addCriterion("nstime not between", value1, value2, "nstime");
			return (Criteria) this;
		}

		public Criteria andNsbeginIsNull() {
			addCriterion("nsbegin is null");
			return (Criteria) this;
		}

		public Criteria andNsbeginIsNotNull() {
			addCriterion("nsbegin is not null");
			return (Criteria) this;
		}

		public Criteria andNsbeginEqualTo(Timestamp value) {
			addCriterion("nsbegin =", value, "nsbegin");
			return (Criteria) this;
		}

		public Criteria andNsbeginNotEqualTo(Timestamp value) {
			addCriterion("nsbegin <>", value, "nsbegin");
			return (Criteria) this;
		}

		public Criteria andNsbeginGreaterThan(Timestamp value) {
			addCriterion("nsbegin >", value, "nsbegin");
			return (Criteria) this;
		}

		public Criteria andNsbeginGreaterThanOrEqualTo(Timestamp value) {
			addCriterion("nsbegin >=", value, "nsbegin");
			return (Criteria) this;
		}

		public Criteria andNsbeginLessThan(Timestamp value) {
			addCriterion("nsbegin <", value, "nsbegin");
			return (Criteria) this;
		}

		public Criteria andNsbeginLessThanOrEqualTo(Timestamp value) {
			addCriterion("nsbegin <=", value, "nsbegin");
			return (Criteria) this;
		}

		public Criteria andNsbeginIn(List<Timestamp> values) {
			addCriterion("nsbegin in", values, "nsbegin");
			return (Criteria) this;
		}

		public Criteria andNsbeginNotIn(List<Timestamp> values) {
			addCriterion("nsbegin not in", values, "nsbegin");
			return (Criteria) this;
		}

		public Criteria andNsbeginBetween(Timestamp value1, Timestamp value2) {
			addCriterion("nsbegin between", value1, value2, "nsbegin");
			return (Criteria) this;
		}

		public Criteria andNsbeginNotBetween(Timestamp value1, Timestamp value2) {
			addCriterion("nsbegin not between", value1, value2, "nsbegin");
			return (Criteria) this;
		}

		public Criteria andNsstopIsNull() {
			addCriterion("nsstop is null");
			return (Criteria) this;
		}

		public Criteria andNsstopIsNotNull() {
			addCriterion("nsstop is not null");
			return (Criteria) this;
		}

		public Criteria andNsstopEqualTo(Timestamp value) {
			addCriterion("nsstop =", value, "nsstop");
			return (Criteria) this;
		}

		public Criteria andNsstopNotEqualTo(Timestamp value) {
			addCriterion("nsstop <>", value, "nsstop");
			return (Criteria) this;
		}

		public Criteria andNsstopGreaterThan(Timestamp value) {
			addCriterion("nsstop >", value, "nsstop");
			return (Criteria) this;
		}

		public Criteria andNsstopGreaterThanOrEqualTo(Timestamp value) {
			addCriterion("nsstop >=", value, "nsstop");
			return (Criteria) this;
		}

		public Criteria andNsstopLessThan(Timestamp value) {
			addCriterion("nsstop <", value, "nsstop");
			return (Criteria) this;
		}

		public Criteria andNsstopLessThanOrEqualTo(Timestamp value) {
			addCriterion("nsstop <=", value, "nsstop");
			return (Criteria) this;
		}

		public Criteria andNsstopIn(List<Timestamp> values) {
			addCriterion("nsstop in", values, "nsstop");
			return (Criteria) this;
		}

		public Criteria andNsstopNotIn(List<Timestamp> values) {
			addCriterion("nsstop not in", values, "nsstop");
			return (Criteria) this;
		}

		public Criteria andNsstopBetween(Timestamp value1, Timestamp value2) {
			addCriterion("nsstop between", value1, value2, "nsstop");
			return (Criteria) this;
		}

		public Criteria andNsstopNotBetween(Timestamp value1, Timestamp value2) {
			addCriterion("nsstop not between", value1, value2, "nsstop");
			return (Criteria) this;
		}

		public Criteria andNsuidIsNull() {
			addCriterion("nsuid is null");
			return (Criteria) this;
		}

		public Criteria andNsuidIsNotNull() {
			addCriterion("nsuid is not null");
			return (Criteria) this;
		}

		public Criteria andNsuidEqualTo(Integer value) {
			addCriterion("nsuid =", value, "nsuid");
			return (Criteria) this;
		}

		public Criteria andNsuidNotEqualTo(Integer value) {
			addCriterion("nsuid <>", value, "nsuid");
			return (Criteria) this;
		}

		public Criteria andNsuidGreaterThan(Integer value) {
			addCriterion("nsuid >", value, "nsuid");
			return (Criteria) this;
		}

		public Criteria andNsuidGreaterThanOrEqualTo(Integer value) {
			addCriterion("nsuid >=", value, "nsuid");
			return (Criteria) this;
		}

		public Criteria andNsuidLessThan(Integer value) {
			addCriterion("nsuid <", value, "nsuid");
			return (Criteria) this;
		}

		public Criteria andNsuidLessThanOrEqualTo(Integer value) {
			addCriterion("nsuid <=", value, "nsuid");
			return (Criteria) this;
		}

		public Criteria andNsuidIn(List<Integer> values) {
			addCriterion("nsuid in", values, "nsuid");
			return (Criteria) this;
		}

		public Criteria andNsuidNotIn(List<Integer> values) {
			addCriterion("nsuid not in", values, "nsuid");
			return (Criteria) this;
		}

		public Criteria andNsuidBetween(Integer value1, Integer value2) {
			addCriterion("nsuid between", value1, value2, "nsuid");
			return (Criteria) this;
		}

		public Criteria andNsuidNotBetween(Integer value1, Integer value2) {
			addCriterion("nsuid not between", value1, value2, "nsuid");
			return (Criteria) this;
		}

		public Criteria andNsunameIsNull() {
			addCriterion("nsuname is null");
			return (Criteria) this;
		}

		public Criteria andNsunameIsNotNull() {
			addCriterion("nsuname is not null");
			return (Criteria) this;
		}

		public Criteria andNsunameEqualTo(String value) {
			addCriterion("nsuname =", value, "nsuname");
			return (Criteria) this;
		}

		public Criteria andNsunameNotEqualTo(String value) {
			addCriterion("nsuname <>", value, "nsuname");
			return (Criteria) this;
		}

		public Criteria andNsunameGreaterThan(String value) {
			addCriterion("nsuname >", value, "nsuname");
			return (Criteria) this;
		}

		public Criteria andNsunameGreaterThanOrEqualTo(String value) {
			addCriterion("nsuname >=", value, "nsuname");
			return (Criteria) this;
		}

		public Criteria andNsunameLessThan(String value) {
			addCriterion("nsuname <", value, "nsuname");
			return (Criteria) this;
		}

		public Criteria andNsunameLessThanOrEqualTo(String value) {
			addCriterion("nsuname <=", value, "nsuname");
			return (Criteria) this;
		}

		public Criteria andNsunameLike(String value) {
			addCriterion("nsuname like", value, "nsuname");
			return (Criteria) this;
		}

		public Criteria andNsunameNotLike(String value) {
			addCriterion("nsuname not like", value, "nsuname");
			return (Criteria) this;
		}

		public Criteria andNsunameIn(List<String> values) {
			addCriterion("nsuname in", values, "nsuname");
			return (Criteria) this;
		}

		public Criteria andNsunameNotIn(List<String> values) {
			addCriterion("nsuname not in", values, "nsuname");
			return (Criteria) this;
		}

		public Criteria andNsunameBetween(String value1, String value2) {
			addCriterion("nsuname between", value1, value2, "nsuname");
			return (Criteria) this;
		}

		public Criteria andNsunameNotBetween(String value1, String value2) {
			addCriterion("nsuname not between", value1, value2, "nsuname");
			return (Criteria) this;
		}
	}

	public static class Criteria extends GeneratedCriteria {

		protected Criteria() {
			super();
		}
	}

	public static class Criterion {
		private String condition;

		private Object value;

		private Object secondValue;

		private boolean noValue;

		private boolean singleValue;

		private boolean betweenValue;

		private boolean listValue;

		private String typeHandler;

		public String getCondition() {
			return condition;
		}

		public Object getValue() {
			return value;
		}

		public Object getSecondValue() {
			return secondValue;
		}

		public boolean isNoValue() {
			return noValue;
		}

		public boolean isSingleValue() {
			return singleValue;
		}

		public boolean isBetweenValue() {
			return betweenValue;
		}

		public boolean isListValue() {
			return listValue;
		}

		public String getTypeHandler() {
			return typeHandler;
		}

		protected Criterion(String condition) {
			super();
			this.condition = condition;
			this.typeHandler = null;
			this.noValue = true;
		}

		protected Criterion(String condition, Object value, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				this.listValue = true;
			} else {
				this.singleValue = true;
			}
		}

		protected Criterion(String condition, Object value) {
			this(condition, value, null);
		}

		protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			this.betweenValue = true;
		}

		protected Criterion(String condition, Object value, Object secondValue) {
			this(condition, value, secondValue, null);
		}
	}
}